package com.exam.controller;

import com.exam.service.FaceVerificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

@RestController
public class FaceVerificationController {
    @Autowired
    private FaceVerificationService faceVerificationService;
    @PostMapping("/faceVerification")
    public String faceVerification(@RequestParam("img1") MultipartFile file1,@RequestParam("img2") MultipartFile file2) throws IOException {
        return faceVerificationService.faceVerification(file1,file2);
    }
}
